baubs git
src/platform/interfaces/IFileService.ts ab9b22b9b8b4341a354ba2d3d8ca18c5fdc76ef9 (ab9b22b9) Text, 677 B
export interface IFileService {
/**
* Open file picker and return File object
* @param options File picker options (e.g., accept filter)
* @returns Selected File or null if cancelled
*/
openFileDialog(options: { accept: string }): Promise<File | null>;
/**
* Save file with native dialog (Electron only, no-op in browser)
* @param data File data as Uint8Array
* @param defaultName Default filename
*/
saveFileDialog(data: Uint8Array, defaultName: string): Promise<void>;
/**
* Check if native file dialogs are available
* @returns true if running in Electron with native dialogs, false otherwise
*/
hasNativeDialogs(): boolean;
}
Served by rngit 1.4.2 - Generated in 0.06s